import { GetterTree } from 'vuex'
import { dictKeyList } from './modules/dict'

const getters: GetterTree<Store.RootState, Store.RootState> = {
  userInfo: state => state.user
}

dictKeyList.forEach(key => (getters[key] = state => state.dict[key]))

export default getters
